tools/firmware/hvmloader: rework Makefile
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 15 Aug 2022 06:55:14 +0000 (08:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 15 Aug 2022 06:55:14 +0000 (08:55 +0200)
commitf4caaef48e4e6d894d2d4831ea66445c976f0138
treef63370e1b7b05e5d4c621367e6a0de5f7dbd6d94
parent8eb15275cd5d945acbc0f70a358255dea94117cf
tools/firmware/hvmloader: rework Makefile

Setup proper dependencies with libacpi so we don't need to run "make
hvmloader" in the "all" target. ("build.o" new prerequisite isn't
exactly proper but a side effect of building the $(DSDT_FILES) is to
generate the "ssdt_*.h" needed by "build.o".)

Make use if "-iquote" instead of a plain "-I".

For "roms.inc" target, use "$(SHELL)" instead of plain "sh". And use
full path to "mkhex" instead of a relative one. Lastly, add "-f" flag
to "mv" to avoid a prompt in case the target already exist and we
don't have write permission.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/firmware/hvmloader/Makefile